home *** CD-ROM | disk | FTP | other *** search
/ Shareware for Windows / Trust Shareware CD.iso / winshare / vb / eztab / form2.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1993-12-04  |  8.2 KB  |  266 lines

  1. VERSION 2.00
  2. Begin Form Form1 
  3.    BackColor       =   &H8000000F&
  4.    BorderStyle     =   3  'Fixed Double
  5.    Caption         =   "Form1"
  6.    ClientHeight    =   5460
  7.    ClientLeft      =   1770
  8.    ClientTop       =   510
  9.    ClientWidth     =   6240
  10.    ClipControls    =   0   'False
  11.    Height          =   5865
  12.    HelpContextID   =   4500
  13.    Left            =   1710
  14.    LinkTopic       =   "Form1"
  15.    ScaleHeight     =   5460
  16.    ScaleWidth      =   6240
  17.    Top             =   165
  18.    Width           =   6360
  19.    Begin EZTab EZTab 
  20.       BackColor       =   &H8000000F&
  21.       Caption         =   "EZTab&4"
  22.       ClipControls    =   0   'False
  23.       Height          =   3000
  24.       Index           =   3
  25.       Left            =   120
  26.       TabIndex        =   3
  27.       TabLeft         =   2730
  28.       TabWidth        =   930
  29.       Top             =   120
  30.       Width           =   6000
  31.       Begin Frame Frame1 
  32.          BackColor       =   &H8000000F&
  33.          Caption         =   "Frame1"
  34.          ClipControls    =   0   'False
  35.          Height          =   1335
  36.          Left            =   960
  37.          TabIndex        =   11
  38.          Top             =   720
  39.          Width           =   4200
  40.          Begin CheckBox Check4 
  41.             BackColor       =   &H8000000F&
  42.             Caption         =   "Check4"
  43.             Height          =   375
  44.             Left            =   360
  45.             TabIndex        =   13
  46.             Top             =   840
  47.             Width           =   3300
  48.          End
  49.          Begin CheckBox Check3 
  50.             BackColor       =   &H8000000F&
  51.             Caption         =   "Check3"
  52.             Height          =   375
  53.             Left            =   360
  54.             TabIndex        =   12
  55.             Top             =   360
  56.             Width           =   3300
  57.          End
  58.       End
  59.       Begin TextBox Text6 
  60.          Height          =   375
  61.          Left            =   960
  62.          TabIndex        =   14
  63.          Text            =   "Text6"
  64.          Top             =   2280
  65.          Width           =   4200
  66.       End
  67.    End
  68.    Begin EZTab EZTab 
  69.       BackColor       =   &H8000000F&
  70.       Caption         =   "EZTab&3"
  71.       ClipControls    =   0   'False
  72.       Height          =   3000
  73.       Index           =   2
  74.       Left            =   120
  75.       TabIndex        =   2
  76.       TabLeft         =   1830
  77.       TabWidth        =   930
  78.       Top             =   120
  79.       Width           =   6000
  80.       Begin OptionButton Option2 
  81.          BackColor       =   &H8000000F&
  82.          Caption         =   "Option2"
  83.          Height          =   375
  84.          Left            =   1500
  85.          TabIndex        =   10
  86.          Top             =   1800
  87.          Width           =   3300
  88.       End
  89.       Begin OptionButton Option1 
  90.          BackColor       =   &H8000000F&
  91.          Caption         =   "Option1"
  92.          Height          =   375
  93.          Left            =   1500
  94.          TabIndex        =   9
  95.          Top             =   900
  96.          Value           =   -1  'True
  97.          Width           =   3300
  98.       End
  99.    End
  100.    Begin EZTab EZTab 
  101.       BackColor       =   &H8000000F&
  102.       Caption         =   "EZTab&2"
  103.       ClipControls    =   0   'False
  104.       Height          =   3000
  105.       Index           =   1
  106.       Left            =   120
  107.       TabIndex        =   1
  108.       TabLeft         =   930
  109.       TabWidth        =   900
  110.       Top             =   120
  111.       Width           =   6000
  112.       Begin TextBox Text5 
  113.          Height          =   2055
  114.          Left            =   360
  115.          MultiLine       =   -1  'True
  116.          ScrollBars      =   3  'Both
  117.          TabIndex        =   8
  118.          Text            =   "Text5"
  119.          Top             =   600
  120.          Width           =   5295
  121.       End
  122.    End
  123.    Begin EZTab EZTab 
  124.       BackColor       =   &H8000000F&
  125.       Caption         =   "EZTab&1"
  126.       ClipControls    =   0   'False
  127.       Height          =   3000
  128.       Index           =   0
  129.       Left            =   120
  130.       TabIndex        =   0
  131.       TabLeft         =   30
  132.       TabWidth        =   900
  133.       Top             =   120
  134.       Width           =   6000
  135.       Begin TextBox Text4 
  136.          Height          =   285
  137.          Left            =   600
  138.          TabIndex        =   7
  139.          Text            =   "Text4"
  140.          Top             =   2400
  141.          Width           =   4800
  142.       End
  143.       Begin TextBox Text3 
  144.          Height          =   285
  145.          Left            =   600
  146.          TabIndex        =   6
  147.          Text            =   "Text3"
  148.          Top             =   1800
  149.          Width           =   4800
  150.       End
  151.       Begin TextBox Text2 
  152.          Height          =   285
  153.          Left            =   600
  154.          TabIndex        =   5
  155.          Text            =   "Text2"
  156.          Top             =   1200
  157.          Width           =   4800
  158.       End
  159.       Begin TextBox Text1 
  160.          Height          =   285
  161.          Left            =   600
  162.          TabIndex        =   4
  163.          Text            =   "Text1"
  164.          Top             =   600
  165.          Width           =   4800
  166.       End
  167.    End
  168.    Begin PictureBox Picture1 
  169.       AutoRedraw      =   -1  'True
  170.       ClipControls    =   0   'False
  171.       FontBold        =   -1  'True
  172.       FontItalic      =   0   'False
  173.       FontName        =   "Courier"
  174.       FontSize        =   9.75
  175.       FontStrikethru  =   0   'False
  176.       FontUnderline   =   0   'False
  177.       Height          =   1335
  178.       Left            =   120
  179.       ScaleHeight     =   1305
  180.       ScaleWidth      =   3345
  181.       TabIndex        =   20
  182.       TabStop         =   0   'False
  183.       Top             =   3960
  184.       Width           =   3375
  185.    End
  186.    Begin CommandButton Command1 
  187.       Caption         =   "Disable #4"
  188.       Height          =   375
  189.       Index           =   3
  190.       Left            =   4920
  191.       TabIndex        =   19
  192.       Top             =   4680
  193.       Width           =   1200
  194.    End
  195.    Begin CommandButton Command1 
  196.       Caption         =   "Disable #3"
  197.       Height          =   375
  198.       Index           =   2
  199.       Left            =   4920
  200.       TabIndex        =   18
  201.       Top             =   4200
  202.       Width           =   1200
  203.    End
  204.    Begin CommandButton Command1 
  205.       Caption         =   "Disable #2"
  206.       Height          =   375
  207.       Index           =   1
  208.       Left            =   3600
  209.       TabIndex        =   17
  210.       Top             =   4680
  211.       Width           =   1200
  212.    End
  213.    Begin CommandButton Command1 
  214.       Caption         =   "Disable #1"
  215.       Height          =   375
  216.       Index           =   0
  217.       Left            =   3600
  218.       TabIndex        =   16
  219.       Top             =   4200
  220.       Width           =   1200
  221.    End
  222.    Begin Ctl3D Ctl3D1 
  223.       ClassList       =   FORM2.FRX:0000
  224.       IgnoreColors    =   -1  'True
  225.       Left            =   120
  226.       Top             =   3960
  227.    End
  228.    Begin Label Label1 
  229.       Alignment       =   2  'Center
  230.       BackColor       =   &H8000000F&
  231.       Caption         =   "double click in the 'tab area' with the right mouse button to switch between EZ-Tab controls in design mode."
  232.       Height          =   375
  233.       Left            =   120
  234.       TabIndex        =   15
  235.       Top             =   3360
  236.       Width           =   6000
  237.    End
  238. Option Explicit
  239. Sub Command1_Click (Index As Integer)
  240.     eztab(Index).Enabled = Not eztab(Index).Enabled
  241.     If eztab(Index).Enabled = False Then
  242.         Command1(Index).Caption = "Enable #" + Format$(Index + 1)
  243.     Else
  244.         Command1(Index).Caption = "Disable #" + Format$(Index + 1)
  245.     End If
  246. End Sub
  247. Sub EZTab_Activate (Index As Integer)
  248.     OutString "Activate", Index
  249. End Sub
  250. Sub EZTab_Click (Index As Integer)
  251.     OutString "Click", Index
  252. End Sub
  253. Sub EZTab_DblClick (Index As Integer)
  254.     OutString "DblClick", Index
  255. End Sub
  256. Sub EZTab_Deactivate (Index As Integer)
  257.     OutString "Deactivate", Index
  258. End Sub
  259. Sub OutString (sText As String, iNum As Integer)
  260.     sText = Left$(sText + Space$(20), 20) + Format$(iNum)
  261.     If Picture1.CurrentY + Picture1.TextHeight(sText) >= Picture1.ScaleHeight Then
  262.         Picture1.Cls
  263.     End If
  264.     Picture1.Print sText
  265. End Sub
  266.